package com.goods.shop.exam;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class E1002 {
    public static void main(String[] args) {
        List<String> result=new ArrayList<>();
        Scanner scanner=new Scanner(System.in);
        int num=scanner.nextInt();
        int count=0;
        while(scanner.hasNext()){
            String inputStr=scanner.nextLine();
            if(null!=inputStr&&!"".equals(inputStr)){
                result.add(inputStr);
                count++;
            }
            if(count==num)break;
        }

        result.forEach(System.out::println);

    }
}
